﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="APhones2._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="ID" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="PhoneName" HeaderText="PhoneName" 
                    SortExpression="PhoneName" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Pictures">
                    <ControlStyle Height="70px" Width="70px" />
                </asp:ImageField>
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="PhonesDetails.aspx?ID={0}" 
                    HeaderText="Detail" Text="More Detail" />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="LikePhones.aspx?ID={0}" HeaderText="Like Phones" 
                    Text="Like " />
                <asp:HyperLinkField DataNavigateUrlFields="ID" 
                    DataNavigateUrlFormatString="Ratings.aspx?ID={0}" HeaderText="Ratings" 
                    Text="rate" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:Phones %>" 
            ProviderName="<%$ ConnectionStrings:Phones.ProviderName %>" 
            SelectCommand="SELECT * FROM [Phones]"></asp:SqlDataSource>
    </h2>
<p>
        &nbsp;</p>
<p>
        &nbsp;</p>
<p>
        &nbsp;</p>
<h2>
        &nbsp;</h2>
</asp:Content>
